package soft.quicknote.beans;

import java.sql.Timestamp;

public class Note {
    private int id;
    private long updateTime;
    private String title;
    private int tag;
    private String content;
    private int category;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public long getUpdateTime() {
        return updateTime;
    }

    public String getContent() {
        return content;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }


    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public Note() {
        this.id = -1;
        this.updateTime = new Timestamp(System.currentTimeMillis()).getTime();
        this.content = this.title = "";

    }

    public Note(int id, String title, String content, long updateTime, int tag,int category) {
        this.id = id;
        this.updateTime = updateTime;
        this.title = title;
        this.content = content;
        this.tag = tag;
        this.category = category;
    }

}
